package com.wondersgroup.core.frame;

/**
 * Dao在数据库操作中抛出的异常封装类
 * @author wanglei
 */
public class TraceDatabaseException extends RuntimeException {

    private String errorCode;

    public String getErrorCode() {
        return errorCode;
    }

    public TraceDatabaseException() {
        super();
    }

    public TraceDatabaseException(final String message) {
        super(message);
    }

    public TraceDatabaseException(final String message, final String errorCode) {
        super(message);
        this.errorCode = errorCode;
    }
}
